{extend name='admin@main'}

{block name="button"}

{/block}

{block name="content"}
<table class="layui-table" lay-skin="line">
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap' >昵称及头像</th>
        <th class='text-left nowrap' >名字</th>
        <th class='text-left nowrap' >是否出勤</th>
        <th class='text-left nowrap' >手机号</th>
        <th class='text-left nowrap' >创建时间</th>
    </tr>
    </thead>
    {/notempty}
    <tbody>
    {foreach $list as $key=>$vo}

            <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
            <td class='text-left nowrap'>
                <img class="circle-image" src="{$vo.avatar|default=''}" data-tips-image > <br/>
                {$vo.nickname|default=''}
            </td>
            <td class='text-left nowrap'>{$vo.realname|default=''}</td>
            <td class='text-left nowrap'>
                {if condition="in_array($vo.id,$course)"}
                是
                {else/}
                否
                {/if}
            </td>
            <td class='text-left nowrap'>{$vo.phone|default=''}</td>
            <td class='text-left nowrap'>{$set_time|default=''}</td>
        </tr>

    {/foreach}
    </tbody>
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}